package com.qf.exception;
import com.qf.vo.ResultVo;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/*
* 异常处理器
* */
@RestControllerAdvice
public class ExamExceptionHandler {


    @ExceptionHandler(ExamException.class)
    public ResultVo poor(ExamException ex){
        return new ResultVo(ex.getCode(),ex.getMessage(),null);
    }


}
